/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrn.dimap.projetodetalhadodesoftware.chatrmi.controller;

import br.ufrn.dimap.projetodetalhadodesoftware.chatrmi.controller.exception.NullListException;
import br.ufrn.dimap.projetodetalhadodesoftware.chatrmi.model.observer.Subject;
import java.net.MalformedURLException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Iterator;
import java.util.List;

/**
 *
 * @author jorge
 */
public interface ServerInterface extends Subject {


    //este metodo retorna a lista de chats disponiveis no servidor
    public List<ChatControllerInterface> returnListToChatRooms() throws RemoteException, NullListException;

    public String getURL() throws RemoteException;

    public void createRegister() throws RemoteException, MalformedURLException;

}
